const express = require("express");
const app = express();



app.get("/:username", (req, res, next) => {
    if (req.params.username !== "admin") { //在数据库检索用户名
        res.send(`欢迎用户${req.params.username}`)
    } else {
        next()
    }

})


app.get("/admin", (req, res) => {
    res.send("管理页面")
})




app.listen(5001)